<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'addCategoryChild.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	
	<style type="text/css">
   		*{padding: 0;margin: 0;} 
   		.body{width: 780px;}
   		 #mainright{width: 78%;height: 230px;float: left;}
        .pic3{background:url("images/index_icon2.png") no-repeat;margin: 10px 0 0 15px;}
        .htext{ margin: 10px 0 0 25px; }
        .righthr{ width: 100%; height: 5px; }
        .hrtext{margin-top: 10px; border: 1px solid darkorange;}
        .table{ text-align: center; margin:30px 0 0  100px; font-size: 14px; line-height: 40px; }
        .pic4{ width: 50px;  height: 30px; text-align: left; }
    </style>
	
  </head>
  
  <body>
    <div style="height: 169px; ">
	         <form action="admin/addSmallCategory.do" method="post">
	            <table class="table">
	                <tr>
	                    <td>类别名称(*):</td>
	                    <td>
	                        <input name="smallCategory" type="text" size="50px"style="height: 20px" >
	                    </td>
	                </tr>
	                <tr>
	                    <td style="vertical-align: middle">&nbsp;&nbsp;&nbsp;所属大类:</td>
	                    <td style="text-align: left">
	                       <select name="largeCategoryId" onchange="cla()">
	                           <option value="-1">请选择</option>
	                           <c:forEach items="${largeCategoryList}" var="category">
		                           <option value="${category.id }">${category.name }</option>
	                           </c:forEach>
	                       </select>
	                    </td>
	                </tr>
	                <tr>
	                    <td><input value="提 &nbsp; 交" type="submit"></td>
	                </tr>
	            </table>
            </form>
        </div>
        ${state }
  </body>
</html>
